-- GENERATED SPELL FOR [Young Black Bear] --


function spell0_1128(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(2649,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1128', 0, 1)
end

function spell1_1128(pUnit, Event) --@Swipe,n/a--
pUnit:FullCastSpellOnTarget(50256,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1128', 0, 1)
end

function Sorts_1128(pUnit, Event)
local choix_sorts_1128 = math.random(0, 1)
if choix_sorts_1128 == 0 then
pUnit:RegisterEvent('spell0_1128', 1, 1)
end
if choix_sorts_1128 == 1 then
pUnit:RegisterEvent('spell1_1128', 1, 1)
end
end

function mob1128_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1128', math.random(1500, 3000), 1)
end

function mob1128_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1128_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1128_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1128, 1, 'mob1128_Action')
RegisterUnitEvent(1128, 2, 'mob1128_Leave')
RegisterUnitEvent(1128, 3, 'mob1128_Kill')
RegisterUnitEvent(1128, 4, 'mob1128_Die')
